home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-06 | 1.4 KB | 42 lines | [TEXT/MPS ] |
- # Quit - MPW Shell Quit File
- #
- # Copyright Apple Computer Inc. 1986-1988, 1991, 1995.
- # All Rights Reserved.
-
-
- # Default tasks.
-
- Save "{Worksheet}"
-
- # Since Quit is distributed with MPW, you may want to have other
- # "Quit" scripts that will not be overwritten with a new release.
- # Other personalized quit scripts may be named Quit•≈ - such as
- # "Quit•John" or "Quit•Tom" (• is option-8), and placed in the
- # MPW preferences folder ({PrefsFolder}). Alternately, you may
- # place items in the Quit Items folder, located in the directory
- # containing the MPW Shell. These items do not have any special
- # naming convention, and will be executed in alphabetical order.
- # They can also be any type of executable entity, such as scripts,
- # tools, and/or applications.
- #
- # The following executes such files found in either place.
-
- # this method of running custom quit scripts is obsolete, and will be removed
- # in a future version of this script. Please move your Quit• scripts into
- # the new :Quit Items: folder.
- For __Quit__i in `(Files -t 'TEXT' -f -s "{ShellDirectory}"Quit•≈ || Set Status 0) ≥ dev:null`
- Execute "{__Quit__i}"
- End
-
- For __Quit__i in `(Files -t 'TEXT' -f -s "{ShellDirectory}Quit Items:" || Set Status 0) ≥ dev:null`
- Execute "{__Quit__i}"
- End
-
- If "{PrefsFolder}"
- For __Quit__i in `(Files -t 'TEXT' -f -s "{PrefsFolder}"Quit•≈ || Set Status 0) ≥ dev:null`
- Execute "{__Quit__i}"
- End
- End
-
- Unset __Quit__i
-